// 导入axios实例对象request
import request from '@/util/request.js'

// 创建并抛出updateRoleAPI接口
export const updateRoleAPI = (id, roleName, roleDesc) => {
  return request.put(`roles/${id}`, { roleName, roleDesc })
}
